import request from '@/utils/request'

// 查询站点要素最新一条
export function listMap() {
  return request({
    url: '/modules/surfMin/listMap',
    method: 'get'
  })
}

// 查询地面分钟要素列表
export function listSurfMin(query) {
    return request({
        url: '/modules/surfMin/list',
        method: 'get',
        params: query
    })
}

// 查询地面分钟要素详细
export function getSurfMin(surfId) {
    return request({
        url: '/modules/surfMin/' + surfId,
        method: 'get'
    })
}

// 新增地面分钟要素
export function addSurfMin(data) {
    return request({
        url: '/modules/surfMin',
        method: 'post',
        data: data
    })
}

// 修改地面分钟要素
export function updateSurfMin(data) {
    return request({
        url: '/modules/surfMin',
        method: 'put',
        data: data
    })
}

// 删除地面分钟要素
export function delSurfMin(surfId) {
    return request({
        url: '/modules/surfMin/' + surfId,
        method: 'delete'
    })
}

// 导出地面分钟要素
export function exportSurfMin(query) {
    return request({
        url: '/modules/surfMin/export',
        method: 'get',
        params: query
    })
}
